FROM golang:1.18
ARG SSH_KEY
RUN mkdir -p ~/.ssh/
RUN echo "$SSH_KEY" > ~/.ssh/id_ed25519
RUN chmod 600 ~/.ssh/id_ed25519
RUN touch ~/.ssh/known_hosts
RUN ssh-keyscan gitee.com >> ~/.ssh/known_hosts
